package com.yangyu.controller;

import com.yangyu.message.BaseRsp;
import com.yangyu.service.TagService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 一碗鱼汤面
 * @version V1.0
 * @Package com.yangyu.controller
 * @date 2021/1/10 17:15
 */
@Api(tags = "标签模块")
@RestController
@RequestMapping("/tag")
public class TagController {

    @Autowired
    private TagService tagService;

    @ApiOperation("查询热门标签")
    @GetMapping("/getHotTags")
    public BaseRsp getHotTags() {
        return tagService.getHotTags();
    }

    @ApiOperation("查询标签详情")
    @GetMapping("/getTagDetails")
    public BaseRsp getTagDetails() {
        return tagService.getTagDetails();
    }

}
